package org.example.innovate.service;

import jakarta.servlet.http.HttpServletRequest;
import org.example.innovate.common.CommonResponse;
import org.example.innovate.domain.User;
import com.baomidou.mybatisplus.extension.service.IService;
import org.example.innovate.vo.UserAvatarVo;
import org.example.innovate.vo.UserVo;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.multipart.MultipartFile;

/**
* @author 马鑫
* @description 针对表【user】的数据库操作Service
* @createDate 2024-12-29 14:15:48
*/
public interface UserService extends IService<User> {
    //登录
    CommonResponse<String> login(User user);
    CommonResponse<User> register(User user);
    public CommonResponse<UserVo> updateUser(User user, HttpServletRequest request);
    public CommonResponse<UserVo> getUser(HttpServletRequest request);

    CommonResponse<UserVo> getUserById(Integer userId);
    CommonResponse<UserAvatarVo> upload(MultipartFile image, HttpServletRequest request);
}
